<script lang="ts">
import { reactive } from 'vue';


export default {
    name: 'categoryadd',
    setup() {
        const form = reactive<{ goodsname: string, time_reg: string }>({
            goodsname: '',
            time_reg: ''
        })



        return {
            form
        }
    },

}
</script>

<template>
    <div>商品添加</div>
    <el-form :model="form" label-width="120px">
        <el-form-item label="商品分类">
            <el-input v-model="form.goodsname" />
        </el-form-item>
    </el-form>
    
    <el-form-item>
        <el-button type="primary" @click="submitForm(ruleFormRef)">Submit</el-button>
        <el-button @click="resetForm(ruleFormRef)">Reset</el-button>
    </el-form-item>
</template>
